﻿@using SPMS.Data
@model SPMS.Data.Manufactor
<div class="spms-item-info">
    <div class="spms-item-image">
        <div class="spms-item-preview" style="width: 130px; height: 130px;">
            @{
                //判断是否有标识
                if (Model.Logo != null && Model.Logo.Length > 0)
                {
                @Html.Raw(string.Format("<img style=\"max-height:128px; max-width:128px;\" title=\"{0}\" src=\"{1}?Manufactor_ID={2:B}\"/>", Html.Encode(Model.Manufactor_Name), this.Url.Action("GetLogoImage"), Model.Manufactor_ID));
                }
                else
                {
                @Html.Raw(string.Format("<img style=\"max-height:128px; max-width:128px;\" title=\"{0}\" src=\"{1}\"/>", Html.Encode(Model.Manufactor_Name), this.Url.Content("~/Content/Images/logo_48.png")));
                }
            }
        </div>
    </div>
    <div class="spms-item-intro">
        <div class="spms-item-intro-summary">
            <h1>@Model.Manufactor_Name</h1>
        </div>
        <div class="spms-item-intro-detail">
            <ul>
                <li>
                    <div class="spms-item-intro-detail-item-title">引用缩写：</div>
                    <div class="spms-item-intro-detail-item-content">@Html.Raw(Model.Manufactor_Abbr)</div>
                </li>
                <li>
                    <div class="spms-item-intro-detail-item-title">厂家名称：</div>
                    <div class="spms-item-intro-detail-item-content">@Html.Raw(Model.Manufactor_Name)</div>
                </li>
                <li>
                    <div class="spms-item-intro-detail-item-title">厂家网址：</div>
                    <div class="spms-item-intro-detail-item-content"><a title="@Html.Raw(Model.Manufactor_Name)" href="@Html.Raw(Model.Manufactor_WebSite)" target="_blank"></a></div>
                </li>
                <li>
                    <div class="spms-item-intro-detail-item-title">附加说明：</div>
                    <div class="spms-item-intro-detail-item-content">@Html.Raw(Model.Memo)</div>
                </li>
            </ul>
        </div>
    </div>
</div>

